<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" th:charset="'UTF-8'">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
    <title>任务大厅</title>
    <link th:replace="~{public::layui}">
    <style type="text/css">
        iframe {
            padding: 15px;
            height: 100%;
            width: calc(100% - 30px);
            border: 0;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">任务大厅</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;" data-th-text="${LOGIN_STATUS?.userName}">
                    <img class="layui-nav-img"
                         src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg">
                </a>
                <dl class="layui-nav-child">
                    <dd><a href=""><i class="layui-icon" style="font-size: 1.5em">&#xe66f;</i>&nbsp;用户信息</a></dd>
                    <dd><a href=""><i class="layui-icon" style="font-size: 1.5em">&#xe716;</i>&nbsp;设置</a></dd>
                    <dd><a data-th-href="@{/logout}"><i class="layui-icon" style="font-size: 1.5em">&#xe682;</i>&nbsp;注销</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">任务大厅</a>
                    <dl class="layui-nav-child">
                        <dd><a target="content-body" th:href="@{/task}"><i class="layui-icon" style="font-size: 1.5em">&#xe705;</i>&nbsp;任务查看</a>
                        </dd>
                        <dd><a href="javascript:;"><i class="layui-icon" style="font-size: 1.5em">&#xe60a;</i>&nbsp;任务清单</a>
                        </dd>
                        <dd><a href="javascript:;" data-th-href="@{/article}" target="content-body"><i class="layui-icon" style="font-size: 1.5em">&#xe857;</i>&nbsp;校园信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed" data-th-each="menu : ${MENUS}">
                    <a href="javascript:;"
                       data-th-utext="${menu.name}"
                       data-th-href="${#strings.isEmpty(menu.url)} ? 'javascript:;':${menu.url}"
                    ></a>
                    <dl class="layui-nav-child" data-th-unless="${#arrays.isEmpty(menu.childs)}">
                        <dd data-th-each="menuChild : ${menu.childs}">
                            <a href="javascript:;" data-th-href="@{{url}(url=${menuChild.url})}" target="content-body"
                               data-th-utext="${menuChild.name}">
                            </a>
                        </dd>
                    </dl>
                    <!--                    <dl class="layui-nav-child">-->
                    <!--                        <dd><a href="javascript:;"  data-th-href="@{/account}" target="content-body"><i class="layui-icon" style="font-size: 1.5em">&#xe66f;</i>&nbsp;账号管理</a></dd>-->
                    <!--                        <dd><a href="javascript:;" data-th-href="@{/role}"  target="content-body"><i class="layui-icon" style="font-size: 1.5em">&#xe735;</i>&nbsp;角色管理</a></dd>-->
                    <!--                        <dd><a href="javascript:;"  data-th-href="@{/appeal}"  target="content-body"><i class="layui-icon" style="font-size: 1.5em">&#xe770;</i>&nbsp;申述处理</a></dd>-->
                    <!--                        <dd><a href="javascript:;" data-th-href="@{/resources}" target="content-body"><i class="layui-icon">&#xe679;</i>资源管理</a></dd>-->
                    <!--                        <dd><a href="javascript:;" data-th-href="@{/resourceType}" target="content-body"><i class="layui-icon">&#xe714;  </i>资源类型管理</a></dd>-->
                    <!--                    </dl>-->
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe name="content-body" src=""></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        底部固定区域
    </div>
</div>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {
        var element = layui.element
            , layer = layui.layer
            , util = layui.util
            , $ = layui.$
    });
</script>
</body>
</html>